home *** CD-ROM | disk | FTP | other *** search
- {
-
- Function Max_int accepts two integers as arguments and returns
- the larger of the two.
-
- }
-
- function
- MAX_INT(
- x,
- y : real
- );
-
-
- BEGIN {MAX_INT}
-
- If x > y then
- Max_Int := x
- Else
- Max_Int := y
-
- END; {MAX_INT}
-
-
- {
-
- Function Max_Real accepts two real numbers as parameters and
- returns the greater of the two.
-
- }
-
- function
- MAX_REAL(
- x,
- y : real
- );
-
-
- BEGIN {MAX_REAL}
-
- If x > y then
- Max_Real := x
- Else
- Max_Real := y
-
- END; {MAX_REAL}
-